package cn.tedu.banner.management.dao.perisit.mapper;

import cn.tedu.banner.management.pojo.entity.Banner;
import cn.tedu.banner.management.pojo.vo.BannerAdminVO;
import cn.tedu.banner.management.pojo.vo.BannerIndexVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BannerMapper extends BaseMapper<Banner> {

    //用户首页轮播图展示
    List<BannerIndexVO> selectForIndex();

    //管理员轮播图列表
    List<BannerAdminVO> selectForAdmin();

    int avatar(Banner banner);

    Banner selectBySort(Integer sort);
}
